//******************************************************************************
//this code is protected by the GNU affero GPLv3
//author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
#include "globals.h"

s8 compositor_create_surface(struct client *c,u32 surface_id)
{
  s8 r=surface_new_visible(c,surface_id);
  if(r==LWL_ERR)
    PERR("client(%d):compositor::create_surface enable to create new"
                                                            " surface\n",c->so);
  return r;
}

s8 compositor_create_region(struct client *c,u32 region_id)
{
  s8 r=region_new_visible(c,region_id);
  if(r==LWL_ERR)
    PERR("client(%d):compositor::create_region no room for new region\n",c->so);
  return r;
}
